package api

import (
	"GIN-API/global"
	"GIN-API/internal/handlers"
	"GIN-API/internal/repository"
	"GIN-API/internal/service"
	"github.com/gin-gonic/gin"
)

func InitUserRouter(r *gin.RouterGroup) {
	userHandler := handlers.NewUserHandler(service.NewUserService(repository.NewUserRepo(global.DB)))
	r.GET("/user/info", userHandler.GetUserByUsername)
}
